<template>
  <div class="row">
    <span class="label">{{ label || '' }}</span>
    <slot>
      <span class="value">{{ value || '' }}</span>
    </slot>
  </div>
</template>

<script>
export default {
  props: {
    label: {
      type: String
    },
    value: {
      type: [String, Number]
    }
  }
}
</script>

<style lang="less" scoped>
.row {
  height: 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-bottom: 1px solid @bg-color;

  .label {
    font-weight: bold;
  }
}
</style>